package com.iwinding.ladygg.net.callback;

import com.iwinding.ladygg.net.response.BaseRopnse;
import com.iwinding.ladygg.net.response.SosRecordRp;
import com.iwinding.ladygg.utils.GsonUtil;
import com.iwinding.ladygg.utils.LogUtil;

import java.util.List;

/**
 * Created by hezhiyong on 2017/3/24.
 */

public abstract class SosRecordCallback extends BaseRpCallback<List<SosRecordRp>> {

    @Override
    public List<SosRecordRp> parseResponse(BaseRopnse response, int id) {
        LogUtil.i("@hzy", "icane----SosRecord:" );
        List<SosRecordRp> rp = GsonUtil.getInstance().jsonToArray(response.data, SosRecordRp.class);
        return rp;
    }
}